<?php
/* @var $this SurveyUserController */
/* @var $model SurveyUser */
/* @var $form CActiveForm */

?>

<div class="form">

<?php

 
 $form=$this->beginWidget('CActiveForm', array(
	'id'=>'surveyuser-form',
	'enableAjaxValidation'=>false,
)); 

?>


	<p class="note"><?php echo Yii::t('base','Fields with <span class="required">*</span> are required.');?></p>

	<?php echo $form->errorSummary($model);

	?>
	
	
	
	
	
	<div class="row">
		<?php echo $form->labelEx($model,'first_name'); ?>
		<?php echo $form->TextField($model,'first_name',array('size'=>50,'maxlength'=>50,'value'=>$pass)); ?>
		<?php echo $form->error($model,'first_name'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'last_name'); ?>
		<?php echo $form->TextField($model,'last_name',array('size'=>50,'maxlength'=>50,'value'=>$pass)); ?>
		<?php echo $form->error($model,'last_name'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'email'); ?>
		<?php echo $form->TextField($model,'email',array('size'=>50,'maxlength'=>50,'value'=>$pass)); ?>
		<?php echo $form->error($model,'email'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'mobile'); ?>
		<?php echo $form->TextField($model,'mobile',array('size'=>50,'maxlength'=>50,'value'=>$pass)); ?>
		<?php echo $form->error($model,'mobile'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'Identity_id'); ?>
		<?php echo $form->TextField($model,'Identity_id',array('size'=>50,'maxlength'=>50,'value'=>$pass)); ?>
		<?php echo $form->error($model,'Identity_id'); ?>
	</div>
	<div class="row">
		<?php echo $form->labelEx($model,'award_address_id'); ?>
		<?php echo $form->TextField($model,'award_address_id',array('size'=>50,'maxlength'=>50,'value'=>$pass)); ?>
		<?php echo $form->error($model,'award_address_id'); ?>
	</div>
	<div class="row">
		<?php  echo $form->labelEx($model,'create_time'); ?>
		<input type="text" id="create_time" name="create_time" size="20" value="<?php echo $model->create_time=='0000-00-00 00:00:00'?date("Y-m-d H:i:s",strtotime("+7 days")):$model->create_time;?>" onClick="WdatePicker({startDate:'%y-%M-01 00:00:00',dateFmt:'yyyy-MM-dd HH:mm:ss',alwaysUseStartDate:true})" " style="width:245px;" />
	</div>
	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? Yii::t('base','To accept the award') : Yii::t('base','Save')); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->